Advice Activation in AspectS
نویسنده
چکیده
AspectS supports aspect-oriented programming (AOP) in Smalltalk using meta-programming. The goal of the AspectS project is to provide a platform for the exploration of AOP in the context of dynamic systems. In its implementation, AspectS makes use of Method Wrappers as an approach to place advice-related computation at specific join points. Different kinds of Method Wrappers are used for different kinds of advice. One of the key mechanisms employed by these Method Wrappers, the way by which they are activated at runtime, is described in this paper.
منابع مشابه
Using Guard Predicates for Generalized Control of Aspect Instantiation and Activation
Many aspect-oriented programming languages employ static transformations in order to produce the executable system. Some aspects, however, should only be effective if certain conditions are fulfilled that can only be evaluated at runtime. The näıve approach of using conditionals within the advice code easily leads to scattering and tangling regarding these conditionals, suggesting that they sho...
متن کاملThe abc Group Dependent Advice: A General Approach to Optimizing History-based Aspects
Many aspects for runtime monitoring are history-based : they contain pieces of advice that execute conditionally, based on the observed execution history. History-based aspects are notorious for causing high runtime overhead. Compilers can apply powerful optimizations to history-based aspects using domain knowledge. Unfortunately, current aspect languages like AspectJ impede optimizations, as t...
متن کاملAssessment of the Causes of Discharge against Medical Advice in Hospitalized Patients in Emergency Department
Abstract Introduction: When the patient discharges from the hospital against medical advice because of dissatisfaction, the treatment will not be complete and can lead to serious complications for the patient. Objective: This research is done, with the aim of reviewing the reasons of discharging against medical advice of hospitalized patients in emergency department in Razi hospital, Rasht, 2...
متن کاملOwnership and Effects for more Effective Reasoning about Aspects
Aspect-oriented languages like AspectJ increase the number of places in a program that need to be considered during reasoning. Advice can send messages to and write fields of any object, and can effectively override any method definition. Aspects can also interfere with other aspects. MAO is a variant of AspectJ that demonstrates how to make reasoning easier by allowing programmers, if they cho...
متن کاملSpace-for-Time Optimization Aspects A Case for Harmless Aspects with around Advice
The space-for-time trade-off is one of the earliest to be discovered in computer science. Taking program complexity into account, we can safely call it “space and elegance”for-time trade-off. Contemporary algorithms text books often tackle the complexity problem by first presenting algorithms in an elegant, but inefficient form, followed by a few paragraphs informally describing optimizations. ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2002